package CodeBlock;
/**
 * 
* @ClassName: CodeBlock
* @Description: TODO(代码块，静态代码块
	static C CodeBlock
	static D CodeBlock
 	C CodeBlock
 	C constructor
 	D CodeBlock
 	D constructor
* )
* @author hsj
* @email 2356899074@qq.com
* @date 2019年5月31日
*
 */
public class CodeBlockConstruction {
	public static void main(String[] args) {
		new HelloD();
	}
}

class HelloD extends HelloC {
	public HelloD() {
		System.out.println(" D constructor");
	}

	{
		System.out.println(" D CodeBlock");
	}
	static {
		System.out.println("static D CodeBlock");
	}
}

class HelloC {
	public HelloC() {
		System.out.println(" C constructor");
	}

	{
		System.out.println(" C CodeBlock");
	}
	static {
		System.out.println("static C CodeBlock");
	}
}